import Login from '@/views/login/index.vue'
import {
  FirstRouter,
  ManageRouter,
  KnowledgeRouter,
  PageRouter,
  GraphRouter,
  FeatureRouter,
  CustomRouter,
  GraphicRouter,
  VideoRouter,
  StatisticsRouter,
  IndividualRouter
} from './second'

// 二级菜单
export const children = [
  FirstRouter,
  ManageRouter,
  KnowledgeRouter,
  PageRouter,
  GraphRouter,
  FeatureRouter,
  CustomRouter,
  GraphicRouter,
  VideoRouter,
  StatisticsRouter,
  IndividualRouter
]

export const redirectRouter = {
  path: '/login',
  component: Login
}
// 登录
export const LoginRouter = {
  path: '/login',
  name: 'login',
  component: () => import('@/views/login/index.vue')
}

// 首页
export const homeRouter = {
  path: '/',
  name: 'home',
  component: () => import('@/views/home/index.vue'),
  children: children,
  redirect: '/first'
}
